#!/usr/bin/python
#
# Copyright (C) 2010 rambla.be
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

try:
  from xml.etree import cElementTree as ElementTree
except ImportError:
  try:
    import cElementTree as ElementTree
  except ImportError:
    from elementtree import ElementTree

import ratom
import rawsc
from rawsc import RAWS_NAMESPACE

class Hits(rawsc.RawsBaseElement):
    _tag = 'hits'

def HitsFromString(xml_string):
    return ratom.CreateClassFromXMLString(Hits, xml_string)

class Volume(rawsc.RawsBaseElement):
    _tag = 'volume'

def VolumeFromString(xml_string):
    return ratom.CreateClassFromXMLString(Volume, xml_string)

class Path(rawsc.RawsBaseElement):
    _tag = 'path'

def PathFromString(xml_string):
    return ratom.CreateClassFromXMLString(Path, xml_string)

class Updated(rawsc.RawsBaseElement):
    _tag = 'updated'

def UpdatedFromString(xml_string):
    return ratom.CreateClassFromXMLString(Updated, xml_string)

class LastRequest(rawsc.RawsBaseElement):
    _tag = 'last_request'

def LastRequestFromString(xml_string):
    return ratom.CreateClassFromXMLString(LastRequest, xml_string)

class Pct010(rawsc.RawsBaseElement):
    _tag = 'pct_0_10'

def Pct010FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct010, xml_string)

class Pct1020(rawsc.RawsBaseElement):
    _tag = 'pct_10_20'

def Pct1020FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct1020, xml_string)

class Pct2030(rawsc.RawsBaseElement):
    _tag = 'pct_20_30'

def Pct2030FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct2030, xml_string)

class Pct3040(rawsc.RawsBaseElement):
    _tag = 'pct_30_40'

def Pct3040FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct3040, xml_string)

class Pct4050(rawsc.RawsBaseElement):
    _tag = 'pct_40_50'

def Pct4050FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct4050, xml_string)

class Pct5060(rawsc.RawsBaseElement):
    _tag = 'pct_50_60'

def Pct5060FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct5060, xml_string)

class Pct6070(rawsc.RawsBaseElement):
    _tag = 'pct_60_70'

def Pct6070FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct6070, xml_string)

class Pct7080(rawsc.RawsBaseElement):
    _tag = 'pct_70_80'

def Pct7080FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct7080, xml_string)

class Pct8090(rawsc.RawsBaseElement):
    _tag = 'pct_80_90'

def Pct8090FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct8090, xml_string)

class Pct90100(rawsc.RawsBaseElement):
    _tag = 'pct_90_100'

def Pct90100FromString(xml_string):
    return ratom.CreateClassFromXMLString(Pct90100, xml_string)

class PctUnknown(rawsc.RawsBaseElement):
    _tag = 'pct_unknown'

def PctUnknownFromString(xml_string):
    return ratom.CreateClassFromXMLString(PctUnknown, xml_string)

class Time0(rawsc.RawsBaseElement):
    _tag = 'time0'

def Time0FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time0, xml_string)

class Time1(rawsc.RawsBaseElement):
    _tag = 'time1'

def Time1FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time1, xml_string)

class Time2(rawsc.RawsBaseElement):
    _tag = 'time2'

def Time2FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time2, xml_string)

class Time3(rawsc.RawsBaseElement):
    _tag = 'time3'

def Time3FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time3, xml_string)

class Time4(rawsc.RawsBaseElement):
    _tag = 'time4'

def Time4FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time4, xml_string)

class Time5(rawsc.RawsBaseElement):
    _tag = 'time5'

def Time5FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time5, xml_string)

class Time6(rawsc.RawsBaseElement):
    _tag = 'time6'

def Time6FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time6, xml_string)

class Time7(rawsc.RawsBaseElement):
    _tag = 'time7'

def Time7FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time7, xml_string)

class Time8(rawsc.RawsBaseElement):
    _tag = 'time8'

def Time8FromString(xml_string):
    return ratom.CreateClassFromXMLString(Time8, xml_string)

class SecTotal(rawsc.RawsBaseElement):
    _tag = 'sec_total'

def SecTotalFromString(xml_string):
    return ratom.CreateClassFromXMLString(SecTotal, xml_string)

class SecAvg(rawsc.RawsBaseElement):
    _tag = 'sec_avg'

def SecAvgFromString(xml_string):
    return ratom.CreateClassFromXMLString(SecAvg, xml_string)

class LastModified(rawsc.RawsBaseElement):
    _tag = 'last_modified'

def LastModifiedFromString(xml_string):
    return ratom.CreateClassFromXMLString(LastModified, xml_string)

class Domain(rawsc.RawsBaseElement):
    _tag = 'domain'

def DomainFromString(xml_string):
    return ratom.CreateClassFromXMLString(Domain, xml_string)

class Country(rawsc.RawsBaseElement):
    _tag = 'country'

def CountryFromString(xml_string):
    return ratom.CreateClassFromXMLString(Country, xml_string)

class Region(rawsc.RawsBaseElement):
    _tag = 'region'

def RegionFromString(xml_string):
    return ratom.CreateClassFromXMLString(Region, xml_string)

class City(rawsc.RawsBaseElement):
    _tag = 'city'

def CityFromString(xml_string):
    return ratom.CreateClassFromXMLString(City, xml_string)

class Host(rawsc.RawsBaseElement):
    _tag = 'host'

def HostFromString(xml_string):
    return ratom.CreateClassFromXMLString(Host, xml_string)

class Events(rawsc.RawsBaseElement):
    _tag = 'events'

def EventsFromString(xml_string):
    return ratom.CreateClassFromXMLString(Events, xml_string)

class Unique(rawsc.RawsBaseElement):
    _tag = 'unique'

def UniqueFromString(xml_string):
    return ratom.CreateClassFromXMLString(Unique, xml_string)

class Timestamp(rawsc.RawsBaseElement):
    _tag = 'timestamp'

def TimestampFromString(xml_string):
    return ratom.CreateClassFromXMLString(Timestamp, xml_string)

class Datetime(rawsc.RawsBaseElement):
    _tag = 'datetime'

def DatetimeFromString(xml_string):
    return ratom.CreateClassFromXMLString(Datetime, xml_string)

class Name(rawsc.RawsBaseElement):
    _tag = 'name'

def NameFromString(xml_string):
    return ratom.CreateClassFromXMLString(Name, xml_string)

class Description(rawsc.RawsBaseElement):
    _tag = 'description'

def DescriptionFromString(xml_string):
    return ratom.CreateClassFromXMLString(Description, xml_string)

class Product(rawsc.RawsBaseElement):
    _tag = 'product'

def ProductFromString(xml_string):
    return ratom.CreateClassFromXMLString(Product, xml_string)

class Location(rawsc.RawsBaseElement):
    _tag = 'location'

def LocationFromString(xml_string):
    return ratom.CreateClassFromXMLString(Location, xml_string)

class Email(rawsc.RawsBaseElement):
    _tag = 'email'

def EmailFromString(xml_string):
    return ratom.CreateClassFromXMLString(Email, xml_string)

class Credits(rawsc.RawsBaseElement):
    _tag = 'credits'

def CreditsFromString(xml_string):
    return ratom.CreateClassFromXMLString(Credits, xml_string)

class Year(rawsc.RawsBaseElement):
    _tag = 'year'

def YearFromString(xml_string):
    return ratom.CreateClassFromXMLString(Year, xml_string)

class Month(rawsc.RawsBaseElement):
    _tag = 'month'

def MonthFromString(xml_string):
    return ratom.CreateClassFromXMLString(Month, xml_string)

class Formula(rawsc.RawsBaseElement):
    _tag = 'formula'

def FormulaFromString(xml_string):
    return ratom.CreateClassFromXMLString(Formula, xml_string)

